]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
windowManager: Don't shift OR windows when inserting a workspace
authorFlorian Müllner <fmuellner@gnome.org>
Fri, 16 Jan 2015 00:19:37 +0000 (01:19 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Fri, 16 Jan 2015 18:28:56 +0000 (19:28 +0100)
We are not supposed to mess around with OR windows, so don't try
to shift them to a different workspace. This fixes a warning with
newer versions of mutter.

https://bugzilla.gnome.org/show_bug.cgi?id=665764

js/ui/windowManager.js

index 70d723c199ce1d254d0b6e20d02248e0360c37cb..b45037630752208cf9ebca56f06f8714b1aea88e 100644 (file)
@@ -904,6 +904,9 @@ const WindowManager = new Lang.Class({
             // to move it
             if (window.get_transient_for() != null)
                 return;
+            // Same for OR windows
+            if (window.is_override_redirect())
+                return;
             // Windows on workspaces below pos don't need moving
             let index = window.get_workspace().index();
             if (index < pos)